package com.example.qa.service.application.service;

import com.example.qa.service.application.command.UpdateQasCommand;
import com.example.qa.service.application.port.in.GetQaListUseCase;
import com.example.qa.service.domain.Qa;
import com.example.qa.service.domain.port.GetQaListPort;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class GetQaListService implements GetQaListUseCase {
    @Resource
    private GetQaListPort getQaListPort;
    @Override
    public List<Qa> getQas() {
        List<Qa> qas = Qa.getQas(getQaListPort);
        return qas;
    }


}
